package stattracker;
/*
 * --------------GOALS-------------------
 * Pretty solid, not much to change
 */
public class Medal implements java.io.Serializable, Comparable<Medal>
{
	private static final long serialVersionUID = 1L;
	private String name, imgLoc, bungieLocation;
	private int amt, difficulty;
	
	public Medal(String name, String loc, String bungName, int difficulty)
	{
		imgLoc = loc;
		this.name = name;
		amt = 0;
		bungieLocation = bungName;
		this.difficulty = difficulty;
	}
	
	public int getMedalCount()
	{
		return amt;
	}
	
	public void setMedalCount(int numMedals)
	{
		amt = numMedals;
	}
	
	public String getName()
	{
		return name;
	}
	
	public String getImgLoc()
	{
		return imgLoc;
	}
	
	public String getBungieLoc()
	{
		return bungieLocation;
	}
	
	public int getDifficulty()
	{
		return difficulty;
	}
	
	public int compareTo(Medal two)
	{
		return ((Integer)two.getDifficulty()).compareTo(difficulty);
	}
}
